export interface UserInfo {
    id: number;
    name: string;
    phone: string;
    password: string;
    unit: string;
    post: string;
    //0: 普通用户，1: 管理员
    role: number;
    avatar: any;
}

export interface DeviceInfo {
    id: number;
    name: string;//设备名称
    machineRoom: string;//机房名称
    district: string;//所属区县
    type: number;//设备类型 0 蓄电池 1 空调
    supplyMode?: string;//送风方式
    capacity: number;//额定容量
    productionTime: string;//出厂日期
    updatePerson: string;//修改人
    updateTime: string;//修改时间
}

export interface FaultInfo {
    id: number;
    deviceId: number;
    deviceName:string;
    machineRoom:string;
    type: number;//设备类型 0 蓄电池 1 空调
    describe: string,//基本问题描述
    maintenancePerson: string;//报修人姓名
    contact?: string,//保修人联系方式
}


//人员表
export const userInfo: UserInfo[] = [
    {
        id: 0,
        name: '郭丽',
        phone: '18906415872',
        password: '18906415872',
        unit: '济南分公司',
        post: '动力环境技术支撑',
        role: 1,
        avatar: require('../assets/img6.jpg')
    },
    {
        id: 1,
        name: '高昆',
        phone: '17805428281',
        password: '17805428281',
        unit: '山东宏业',
        post: '现场维护',
        role: 0,
        avatar: require('../assets/img7.jpg')
    },
]

//蓄电池表
export const batteryInfo: DeviceInfo[] = [
    {
        id: 0,
        name: '蓄电池',
        machineRoom: '环保科技园机房',
        district: '高新区',
        type: 0,
        supplyMode: '上送风',
        capacity: 2000,
        updatePerson: '郭丽',
        updateTime: '2023-12-01 13:01:00',
        productionTime: '2019-03-15'
    },
    {
        id: 1,
        name: '蓄电池',
        machineRoom: '环保科技园机房',
        district: '高新区',
        type: 0,
        supplyMode: '上送风',
        capacity: 2000,
        updatePerson: '陈文佳',
        updateTime: '2023-07-08 15:06:08',
        productionTime: '2019-03-15'
    },
]

//空调表
export const airConditionInfo: DeviceInfo[] = [
    {
        id: 0,
        name: '普通空调',
        machineRoom: '齐鲁国际大厦机房',
        district: '历下区',
        type: 1,
        supplyMode: '上送风',
        capacity: 12,
        updatePerson: '高昆',
        updateTime: '2020-07-06 13:26:13',
        productionTime: '2018-08-20'
    },
    {
        id: 1,
        name: '普通空调',
        machineRoom: '齐鲁国际大厦机房',
        district: '历下区',
        type: 1,
        supplyMode: '上送风',
        capacity: 100,
        updatePerson: '高昆',
        updateTime: '2020-07-06 13:27:40',
        productionTime: '2016-07-20'
    },
    {
        id: 2,
        name: '普通空调',
        machineRoom: '齐鲁国际大厦机房',
        district: '历下区',
        type: 1,
        supplyMode: '上送风',
        capacity: 12.5,
        updatePerson: '高昆',
        updateTime: '2020-07-06 09:30:45',
        productionTime: '2013-01-23'
    },
]

//故障报修表
export const repairInfo: FaultInfo[] = [
    {
        id: 0,
        deviceId: 1,
        deviceName:'普通空调',
        machineRoom:'齐鲁国际大厦机房',
        type: 1,
        describe: '空调无法开机',
        maintenancePerson: '高昆',
        contact: '17805428281'
    },
    {
        id: 1,
        deviceId: 0,
        deviceName:'普通空调',
        machineRoom:'齐鲁国际大厦机房',
        type: 1,
        describe: '空调超期服役',
        maintenancePerson: '高昆',
        contact: '17805428281'
    },
    {
        id: 2,
        deviceId: 0,
        deviceName:'蓄电池',
        machineRoom:'齐鲁国际大厦机房',
        type: 0,
        describe: '蓄电池漏液，无法放电',
        maintenancePerson: '高昆',
        contact: '17805428281'
    },
]

export const DashboardData = [
    {id: 0, name: '蓄电池', data: batteryInfo},
    {id: 1, name: '空调', data: airConditionInfo},
]

